<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); ?>
<?
$arIBlocks = SelectIBlock(array(),
                            array("TYPE"=>"offers"),
                            false,
                            false,
                            array() );

$arElements = array();
foreach($arIBlocks as $arIBlock):
   $item = SelectIElement(array("DATE_CREATE_UNIX"=>"desc"),
                                    array("IBLOCK_ID"=>$arIBlock["ID"],"IBLOCK_TYPE"=>"offers","ACTIVE"=>"Y"),
                                    false,
                                    4,
                                    array() );//array("ID","IBLOCK_ID") );
    if (!empty($item)):
        $arElements[] = $item;
    endif;
endforeach;
?>

<pre>
<? print_r($arElements[0]);?>
</pre>
